import Page404 from "../pages/404/Page404";
import { Home } from "../pages/home/Home";
import Login from "../pages/login/login";
import { Routes, Route } from "react-router-dom";
import Me from "../pages/me/Me";

export default () => {
    return (
        <>
            <Routes>
                <Route path="/">
                    <Route index element={<Home />} />
                    <Route path='/login' element={<Login />}></Route>
                    <Route path="me" element={<Me />} />

                    {/* 使用 path="*"" 意味着 "匹配所有路径", 所以我们不需要明确地列出别的路径了。 */}
                    <Route path="*" element={<Page404 />} />
                </Route>
            </Routes>
        </>)
}
